-- Decompiled with the Synapse X Luau decompiler.

local ServerOHOH = _G.ServerOHOH;
local DataBaseManager = ServerOHOH.load.DataBaseManager();
local RankList = ServerOHOH.load.RankList();
for k, v in pairs(RankList) do
	-- RankList[k] = k;
	DataBaseManager:CreateSortDataBase(v);
end;
function GetDataBaseName(rankKey)
	local a= RankList[rankKey]
	return a
end
local M = ServerOHOH.class.new(script);
--Server_RankManager:GetRankList("power", false, 50)

function M.GetRankList(self, key, p3, p4, p5, p6)
	return DataBaseManager:GetSortedList(GetDataBaseName(key), p3, p4, p5, p6);
end;

--key, self.parent:GetUserId(), value

function M.SetRankValue(self, key, userId, value)
	DataBaseManager:Save(GetDataBaseName(key), userId, value);
end;
function M.GetRankValue(self, key, userId)
	return DataBaseManager:Load(GetDataBaseName(key), userId);
end;
function M.IncrementRankValue(self, key, userId, value)
	DataBaseManager:Increment(GetDataBaseName(key), userId, value);
end;
return M;
